package com.example.shop_2210.utils

import android.widget.ImageView
import androidx.databinding.BindingAdapter
import com.bumptech.glide.Glide

class ImageUtils {
    /**
     * 绑定适配器---图片
     */
    companion object{
        @JvmStatic
        @BindingAdapter("img_url")
        fun loadImage(imageView:ImageView,url:String?){
            Glide.with(imageView.context).load(url).into(imageView)
        }
    }
}